package wrapper.user;

import domain.Account;

/**
 * Created by aceyin on 15/7/14.
 */
public class SimpleAccount {
    private long id;
    private String username;
    private String nick;
    private String avatar;


    public static SimpleAccount from(Account a) {
        SimpleAccount account = new SimpleAccount();
        account.setId(a.getId());
        account.setUsername(a.getUsername());
        account.setNick(a.getNick());
        account.setAvatar(a.getAvatar());
        return account;
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getNick() {
        return nick;
    }

    public void setNick(String nick) {
        this.nick = nick;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }
}
